<template>
    <div>
        <router-view></router-view>
        <van-tabbar v-model="active" active-color="#1989fa" inactive-color="black">
            <van-tabbar-item :icon="require('../../assets/img/订单2.png')" to="/businessOrder">订单</van-tabbar-item>
            <van-tabbar-item :icon="require('../../assets/img/首页.png')" @click="shopHome">首页</van-tabbar-item>
            <van-tabbar-item :icon="require('../../assets/img/_我的.png')" to="/BusinessMy">我的</van-tabbar-item>
        </van-tabbar>
    </div>
</template>

<script>
    export default{
        name:"Nav",
        data() {
            return {
                active: 1,
            }
        },
        methods:{
            shopHome(){
                this.$router.push({path:`/shopHome/${this.$store.state.shop.shopId}`})
            }
        }
    }
</script>

<style>

</style>